<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateElSingleDiscountConditionsTable extends Migration
{

	/**
	 * Run the migrations.
	 * 单品促销条件表
	 * @return void
	 */
	public function up()
	{
		Schema::create('el_single_discount_conditions', function(Blueprint $table) {
            $table->increments('id');
            $table->integer('single_discount_id');
            $table->string('name');  //当为单品折扣：sku值
			$table->text('value');	//减免类型：减免值    序列化存储,单品折扣时为cash:discount
            $table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('discount_conditions');
	}

}
